Complex machinning machine tool

ABSTRACT

In a complex machining machine tool capable of executing a plurality of kinds of machining on a workpiece by selectively indexing and using an insert installed on a complex tool, complex tool is registered concerning a plurality of machining capable of executing with the complex tool as a plurality of virtual tools for executing the machining in tool file. The virtual tools include a turning tool and a milling tool. The tool data is stored for each virtual tool. In the tool data, the angle of B-axis direction at which the tool is positioned when the virtual tool is used is stored as B-axis angle concerning each virtual tool. The tool data of the corresponding virtual tool is read out from the tool file on the basis of the machining instruction by the virtual tool stored in machining program, and the B-axis angle is set on the basis of the tool data so as to execute machining.

BACKGROUND OF THE INVENTION

[0001] This invention relates to complex machining machine tool using complex tool, installing a plurality of inserts on a single holder portion thereon, capable of performing turning machining and rotational tool machining such as drilling/milling machining with one tool.

[0002] In such a conventional machine tool, tools are divided into tools for turning machining and tools for drilling/milling machining. For every change of machining contents, the tool installed on a tool rest is exchanged by its attachment and detachment according to the machining to be executed from now on so as to machine.

[0003] It is necessary to exchange a tool every time machining contents change in such a machine tool. The time for exchange of tool causes lowering of machining efficiency. Then, the recent proposal is that the complex tool wherein a plurality of inserts is installed on a single tool is used so as to save the trouble of tool exchange and to improve machining efficiency.

[0004] But, it is absolutely impossible for an operator to sufficiently know the machining contents of such complex tool in advance at the time of composing machining program. So, the development of the machine tool capable of machining with complex tool without an operator's consciousness of complex tool is desired.

[0005] The object of the present invention is to provide a complex machining machine tool capable of easily using complex tool with no knowledge concerning a complex tool, taking the above-mentioned circumstances into consideration.

SUMMARY OF THE INVENTION

[0006] The invention of claim 1 is complex machining machine tool having a tool rest capable of attachably and detachably installing a complex tool having a plurality of inserts thereon, capable of a plurality of kinds of machining on a workpiece with said complex tool by selectively indexing and using said insert installed on said complex tool, said complex machining machine tool comprising:

[0007] a spindle rotatably supported with Z-axis as its center;

[0008] said tool rest being free to move and drive in X-axis direction perpendicular to said Z-axis, and being free to rotate, position and drive in B-axis direction with Y-axis perpendicular to said X-axis and Z-axis as its center;

[0009] tool file storing tool data concerning a tool to be used in machining program;

[0010] said complex tool registered in said tool file as a plurality of virtual tools for executing machining concerning a plurality of machining capable of executing with said complex tool;

[0011] said virtual tools including a turning tool and a milling tool;

[0012] said tool data stored for every said virtual tool;

[0013] said tool data storing an angle of said B-axis direction concerning each virtual tool at which said tool is positioned when said virtual tool is used as B-axis angle; and

[0014] machining executing means reading out tool data of corresponding virtual tool from said tool file on the basis of machining instruction by said virtual tool stored in said machining program and executing machining with said complex tool on the basis of said tool data.

[0015] According to the invention of claim 1, a plurality of virtual tools is set according to the machining contents of the complex tool in the tool file. Then, designation of tool finishes by only designating the virtual tool to be used in the machining program, and an operator can use the complex tool with the sense similar to a usual tool without consciousness of complex tool.

[0016] Besides, the angle in the B-axis direction at which the tool is positioned when the virtual tool is used is stored as the B-axis angle concerning each virtual tool. Then, it is not necessary to set the B-axis angle when an operator uses the virtual tool, and an operator can easily use the complex tool.

[0017] The invention of claim 2 is the complex machining machine tool, wherein tool length concerning one complex tool is stored for each insert.

[0018] According to the invention of claim 2, the tool length is stored for each insert. Then, the tool length can be maintained regardless of the machining contents, such as milling and turning with the insert. So, the maintenance is easy.

[0019] The invention of claim 3 is the complex machining machine tool, wherein interference occurrence judging means is provided for judging whether or not there is interference between a workpiece to be machined and said each virtual tool by simulating machining program to be executed from now on, and B-axis angle changing means is provided for changing and setting B-axis angle so as to shift B-axis angle concerning said virtual tool stored in said tool data a predetermined quantity in the direction which said complex tool gets away from said workpiece in case where the interference between said workpiece to be machined and said each virtual tool is judged by said interference occurrence judging means. According to the invention of claim 3, the B-axis angle changing means changes and sets the B-axis angle (the angle of {circle over (4)} of FIG. 10) concerning the virtual tool stored in the tool data so as to shift a predetermined quantity in the direction where the complex tool gets away from the workpiece in case where the interference between the workpiece to be machined and each virtual tool is judged (for instance, the cases as shown in FIGS. 11(a) (c), (d) Even if the workpiece and the tool interfere with each other, using the complex tool, the B-axis angle is changed so as to automatically avoid the interference. Therefore, an operator can execute the machining with no consciousness of the B-axis angle of the complex tool 21.

[0020] The invention of claim 4 is the complex machining machine tool, wherein maximum shifting quantity is set for the shifting quantity of B-axis angle by said B-axis angle changing means, and said B-axis angle is controlled so as not shift over said maximum shifting quantity.

[0021] According to the invention of claim 4, the B-axis angle is not shifted exceeding the maximum shift quantity. Then, such a situation that the B-axis angle of each virtual tool of the complex tool is shifted over a predetermined quantity and the function as the virtual tool can not be exercised can be avoided, and proper machining can be continued.

BRIEF DESCRIPTION OF THE DRAWINGS

[0022]FIG. 1 is a control block diagram showing an example of a complex machining machine tool to which the present invention is applied;

[0023]FIG. 2 is a view obliquely showing an example of a workpiece to be machined;

[0024]FIG. 3 is a typical view for explaining an example of tool data stored in tool file and its contents;

[0025]FIG. 4 is a view obliquely showing an example of a complex tool;

[0026]FIGS. 5, 6, 7, and 8 are views showing details when the workpiece as shown in FIG. 2 is machined with the complex tool;

[0027]FIG. 9 is a flowchart showing an example of B-axis angle determination program;

[0028]FIG. 10 is a view for explaining the state of angle of tool edge at the time of machining; and

[0029]FIG. 11 is a view for showing the state of interfering tool edge and workpiece with each other.

DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0030] A complex machining machine tool 1 has a main control portion 2, as shown in FIG. 1. With the main control portion 2, an input portion, such as a keyboard 5, a system program memory 6, a tool file 7, a simulation control portion 8, a machining program memory 9, a B-axis angle changing judging control portion 4, a spindle control portion 10, a tool rest control portion 11 and a display 12 are connected through a bus line 3. A spindle motor 13 is connected with the spindle control portion 10. With the spindle motor 13, a spindle 15, being free to rotate, drive and position with axial center CT provided parallel to Z-axis as its center is connected. With the spindle 15, a chuck 16 is provided. Claws 16 a are provided with the chuck 16, being free to hold and release a workpiece 17 to be machined, being free to move and drive in the direction as shown by arrows C and D.

[0031] Tool rest driving motors 19 (the plural number) are connected with the tool rest control portion 11. A tool rest 20 is connected with the tool rest driving motor 19, being free to move and drive in the Z-axis direction and in the direction as shown by arrows E and F rectangular to the Z-axis, that is, in the X-axis direction by the tool rest driving motor 19. Furthermore, the tool rest 20 is provided, being free to move and drive in Y-axis direction rectangular to the X-axis and Z-axis, and rectangular to the paper, and in the direction as shown by arrows G and H which is B-axis direction with the Y-axis as its center by the tool rest driving motor 19.

[0032] A tool holding portion 20 a is formed on the tool rest 20. A turning tool, a milling/drilling tool, and a complex tool 21 capable of turning and milling/drilling machining are provided with the tool holding portion 20 a, being free to attach, detach and exchange. The tool holding portion 20 a is provided, being free to fix and hold the complex tool and other tools in a predetermined holding state, and being free to rotate, drive and position around axial center CT2.

[0033] The complex tool 21 has a main body 21 a formed in round bar shape, as shown in FIG. 4. On the top of the main body 21 a, an insert installation portion 21 b is formed. Four inserts 22, 23, 25 and 26 are respectively installed on the insert installation portion 21 b at the pitch of 90° with axial center CT3 of the main body 21 a as its center so as to attach and detach. As shown in FIG. 3(a), indexing number KD is set for each insert. The indexing number KD is set as 1 for the insert 22, and clockwise, the indexing number KD is 2 for the insert 23, the indexing number KD is 3 for the insert 25 and the indexing number KD is 4 for the insert 26.

[0034] Tool name is allotted to the respective inserts 22, 23, 25 and 26 as a virtual tool according to the machining contents to be performed with the complex tool 21. For the insert 22 which indexing number KD is 1, three kinds of tool name, {circle over (1)} turning drill for performing drilling machining wherein tool itself does not rotate, {circle over (6)} milling drill for performing drilling machining wherein tool itself rotates and {circle over (7)} end mill for performing milling machining is allotted as a virtual tool, as shown in FIG. 3(c). For the insert 23 which indexing number KD is 2, tool name NA, {circle over (4)} inside diameter rough machining for performing turning rough machining on inside diameter is allotted, for the insert 25 which indexing number KD is 3, tool name NA, {circle over (2)} outside diameter rough machining for performing turning rough machining on outside diameter is allotted, and for the insert 26 which indexing number KD is 4, tool name NA, {circle over (3)} outside diameter finishing for performing turning finishing machining on outside diameter and {circle over (5)} inside diameter finishing for performing turning finishing machining on inside diameter is allotted as a virtual tool.

[0035] The complex machining machine tool 1 has the before-mentioned structure. Then, in order to machine the cylindrical workpiece 17 which diameter is D1, for instance, as shown in FIG. 2, an operator inputs various kinds of machining data by a known automatic programming method, operating the keyboard 5 so as to compose machining program. On this occasion, the main control portion 2 composes the machining program PRO on the basis of the various kinds of data input by an operator according to a known automatic program composing program stored in the system program memory 6, then the composed machining program PRO is stored in the machining program memory 9.

[0036] After the machining program PRO concerning the workpiece 17 is composed, an operator instructs the main control portion 2 to machine the workpiece 17 through the keyboard 5. Receiving this instruction, the main control portion 2 reads out the machining program PRO concerning the workpiece 17 from the machining program memory 9 so as to execute machining, appropriately driving the spindle control portion 10 and the tool rest control portion 11.

[0037] As shown in (M1) of FIG. 5, at the machining on the workpiece 17, the machining for forming a hole 17 a on the central portion of the workpiece 17 by a drill is firstly performed. The tool to be used at this time is designated by the machining program PRO. The main control portion 2 refers to the tool file 7 when the tool to be used is designated by the machining program PRO, and reads out tool data TL of the corresponding tool.

[0038] In the tool file 7, tool number TN, tool setting direction DR, tool name NA, nominal diameter/tool angle CA, suffix DC, rotational direction/tool character RT, tool diameter/ tool edge R DM, finishing machining/rough machining division RF of the tool data DAT are set for each tool as chart data DAT1, as shown in FIG. 3(b). Furthermore, detailed data concerning each tool is stored as detailed data DAT2.

[0039] The complex tool 21 is set as an independent tool in this tool file 7, dividing into a plurality of virtual tools according to the machining contents capable of machining with the complex tool 21. For instance, seven virtual tools, on which the tool name NA and the suffix DC from {circle over (1)} to {circle over (7)} mentioned before are affixed, are stored as the tool number TN 1 (the example of FIG. 3(b) is one example, and if the machining form with the complex tool 21 extends over many kinds, the virtual tools having many of tool name NA and suffix DC according to the machining kind are registered). That is, every machining contents allotted to the respective inserts 22, 23, 25, 26 of the complex tool 21, the tool data of the inserts 22, 23, 25, 26 for performing the machining contents is stored in the tool file 7, regarding the respective inserts as an independent tool. For instance, the virtual tools {circle over (1)} through {circle over (7)} corresponding to each virtual tool name NA as shown in FIG. 3(c) are stored, corresponding to {circle over (1)} through {circle over (7)} in FIG. 3(b).

[0040] That is, the virtual tool of {circle over (1)} turning drill of FIG. 3(c) is registered in such a manner that tool number Tno is 1, tool setting direction is ←, tool name NA is DRL EDG, nominal diameter/tool angle CA is 180, suffix DC is A, rotational direction/tool character RT is right rotation, and tool diameter/tool edge R DM is 50, as shown in {circle over (1)} of FIG. 3(b). On this occasion, tool setting direction DR shows the tool direction as default value by the direction of an arrow, “←” shows the direction wherein the direction of the tool is parallel to the Z-axis, that is, the B-axis angle is 0° and “↓” shows the direction wherein the direction of the tool is parallel to the X-axis, that is, the B-axis angle is 90°.

[0041] The virtual tool of {circle over (2)} outside diameter rough machining of FIG. 3(c) is registered in such a manner that tool number TNo is 1, tool setting direction DR is ↓, tool name NA is GNL OUT, nominal diameter/tool angle CA is 75, suffix DC is B, rotational direction/tool character RT is left hand/right rotation, tool diameter/tool edge R DM is 0.4, finishing machining/rough machining division RF is R (rough machining), as shown in {circle over (2)} of FIG. 3(b). The virtual tool of outside diameter finishing machining of FIG. 3(c) is registered in such a manner that tool number TNo is 1, tool setting direction DR is ↓, tool name NA is GNL OUT, nominal diameter/tool angle CA is 40, suffix DC is C, rotational direction/tool character RT is right hand/left rotation, tool diameter/tool edge R DM is 0.2, finishing machining/rough machining division RF is F (finishing machining), as shown in {circle over (3)} of FIG. 3(b).

[0042] Furthermore, the virtual tool of {circle over (4)} inside diameter rough machining of FIG. 3(c) is registered in such a manner that tool number TNo is 1, tool setting direction DR is ←, tool name NA is GNL IN, nominal diameter/tool angle CA is 75, suffix DC is D, rotational direction/tool character RT is right hand/left rotation, tool diameter/tool edge R DM is 0.4, finishing machining/rough machining division RF is R (rough machining), as shown in {circle over (5)} of FIG. 3(b). The virtual tool of {circle over (5)} inside diameter finishing machining of FIG. 3(c) is registered in such a manner that tool number TNo is 1, tool setting direction DR is ←, tool name NA is GNL IN, nominal diameter/tool angle CA is 40, suffix DC is E, rotational direction/tool character RT is right hand/left rotation, tool diameter/tool edge R DM is 0.2, finishing machining/rough machining division RF is F (finishing machining), as shown in {circle over (5)} of FIG. 3(b).

[0043] The virtual tool of {circle over (6)} mill drill of FIG. 3(c) is registered in such a manner that tool number TNo is 1, tool setting direction DR is ↓, tool name NA is drill, nominal diameter/tool angle CA is 50, suffix DC is H, rotational direction/tool character RT is left direction, as shown in {circle over (6)} of FIG. 3(b). The virtual tool of {circle over (7)} end mill of FIG. 3(c) is registered in such a manner that tool number TNo is 1, tool setting direction DR is ↓, tool name NA is end mill, nominal diameter/tool angle CA is 50, suffix DC is J, rotational direction/tool character RT is right direction and tool diameter/tool edge R DM is 50, as shown in {circle over (7)} of FIG. 3(b).

[0044] Then, in the machining program PRO, as the tool to be used in the machining program PRO, the tool name NA and the suffix DC of the corresponding virtual tool are designated, regardless of use of the complex tool 21 in the machining, similar to the case of designating a normal tool even if the complex 21 is used. In case of the machining (M1) for forming the hole 17 a on the central portion of the workpiece 17 as shown in FIG. 5 as mentioned before, the virtual tool of {circle over (1)} turning drill of the complex tool 21 is used as a tool. So, in this designation, the tool name NA “DRL EDG” and the suffix DC “A” are input in the machining program PRO, similar to a normal tool designation. By doing so, the tool designation finishes only by acknowledging and designating each virtual tool in the tool file 7 by an operator without understanding the whole complex tool 21 at the time of composing the machining program PRO. Then, the composing of the machining program PRO is possible with no specific knowledge concerning the complex tool 21. Then, the main control portion 2 searches the tool data DAT of the tool file 7 so as to select the corresponding tool, that is, the virtual tool wherein the tool number TNo as shown in {circle over (1)} of FIG. 3(b) is 1 and tool name NA is “DRL EDG” and suffix DC is “A” as shown on the most upper hand of the figure, and instructs the tool rest control portion 11 to index the tool at the machining position. In the tool file 7, the respective tools (including {circle over (1)} through {circle over (7)} as “virtual tool” regarded seven independent tools of the complex tool 21) are differentiated by tool name NA and suffix DC concerning turning machining related tool (in case of the same tool name NA, it is differentiated by changing suffix DC into “A”, “B”, “C”, “D” and “E”), and are differentiated by tool name NA and nominal diameter/tool angle CA concerning the milling machining related tool, regardless of being the complex tool 21 or not. Then, when tool name NA and suffix DC or tool name NA and nominal diameter/tool angle CA are designated in the machining program PRO, the corresponding tool is immediately determined.

[0045] The tool rest control portion 11 drives the tool exchanger which is not shown, and selects the complex tool 21 which tool number TNo is 1 from the tool magazine which is not shown so as to install on the tool rest 20. When the complex tool 21 is installed on the tool rest 20, the tool rest control portion 11 refers to the detailed data DAT2 corresponding to {circle over (1)} turning drill from tool name NA and suffix DC designated in the machining program PRO, and reads out the indexing number KD concerning {circle over (1)} turning drill and the B-axis angle ANG of the complex tool 21 shown in the detailed data DAT2.

[0046] As shown in FIG. 3(b), tool data, similar to normal turning tool and milling tool, is stored for each virtual tool in the detailed data DAT2. In the detailed data DAT2 concerning each virtual tool, more detailed tool data is stored, for instance, tool length in X-axis and Z-axis direction TL, indexing number KD and B-axis angle ANG as default value, in addition to the above-mentioned tool name NA, nominal diameter/tool edge angle CA, suffix DC, rotational direction/tool character RT, tool diameter/tool edge R DM, finishing machining/rough machining division RF.

[0047] Since the respective inserts 22, 23, 25, 26 are fixedly provided with respect to the main body 21 a, the tool length TL measured concerning some virtual tool using an insert can be also used for other virtual tool using this insert. That is, even if B-axis angle ANG or indexing number KD of the complex tool using the same insert is different, the change of the tool length TL based on the difference is caused by only change of rotational angle with B-axis and the axial center CT2 as their center. Concerning the virtual tool having other B-axis angle ANG or other indexing number KD, using the same insert, its tool length can be geometrically easily computed. Therefore, the tool length TL measured for one virtual tool, using the same insert, can be also used for other virtual tool using the insert.

[0048] The tool rest control portion 11 drives and controls a tool driving motor (not shown) built in the tool rest on the basis of the indexing number KD and the B-axis angle ANG concerning the read {circle over (1)} turning drill so as to rotate the complex tool 21 around its axial center CT3 and to position it in the state that the indexing number KD is 1. The state that the indexing number 1 is the state that the insert 22 is positioned facing upper hand in the figure (Y-axis direction), as shown in FIG. 3(a). Furthermore, the tool rest 20 is moved and driven in the direction as shown by the arrows G and H with the Y-axis as its center by driving the B-axis driving motor (not shown) so as to position the complex tool 21 being parallel to Z-axis, which B-axis angle position is 0°, as shown in FIG. 3(c). In this state, the spindle 15 is rotated and driven by the spindle driving motor 13 at a predetermined rotational number and the complex tool 21 is moved and driven in the direction by the arrow A of the Z-axis direction so as to machining and forming the hole 17 a of a predetermined depth on the rotating workpiece 17 by the insert 22, as shown in FIG. 5(M1)

[0049] Subsequently, an end face 17 b of FIG. 5(M2) is machined by the insert 22 of the complex tool 21. In this case, the tool rest control portion 11 drives the B-axis driving motor with {circle over (1)} turning drill tool being selected so as to rotate and drive the tool rest 20 a predetermined angle in the direction as shown by the arrow H of B-axis (that is, the B-axis angle ANG is changed). Then, the complex tool 21 is held, slightly inclined with respect to the Z-axis, and the end face 17 b of the workpiece is machined by the same insert 22, as shown in FIG. 5(M2).

[0050] Next, rough machining is performed on an outside diameter 17 c of the workpiece 17 of FIG. 5(M3) by the complex tool 21. In this case, the virtual tool is designated by inputting “GNL OUT” as tool name NA, “B” as suffix DC in the machining program PRO. Then, main control portion 2 searches the tool data DAT of the tool file 7, and selects the corresponding tool, that is, the virtual tool which tool name NA is “GNL OUT” and the suffix DC is “B”, shown on the second from the upper of the figure which tool number is 1 as shown in {circle over (2)} of FIG. 3(b), and instructs the tool rest control portion 11 to index the tool to the machining position.

[0051] The tool rest control portion 11 refers to the detailed data DAT2 corresponding to {circle over (2)} outside diameter rough machining from the tool name NA and the suffix DC designated in the machining program PRO, and reads out the indexing number KD “3” and the B-axis angle ANG “112°” concerning {circle over (2)} outside diameter rough machining of the complex tool 21 shown in the detailed data DAT2.

[0052] The tool rest control portion 11 drives and controls the tool driving motor (not shown) built in the tool rest on the basis of the read indexing number KD “3” and the B-axis angle “112°” concerning {circle over (2)} outside diameter rough machining so as to rotate the complex tool 21 around its axial center CT3. And, the complex tool 21 is positioned in the state that the indexing number KD is 3, as shown in FIG. 3(a). Furthermore, the B-axis driving motor (not shown) is driven so as to move and drive the tool rest 20 in the direction as shown by the arrows G and H of the B-axis direction. Then, the complex tool 21 is positioned so that the B-axis angle position is anticlockwise 120° with respect to the Z-axis, as shown in FIG. 5(M3). In this state, the complex tool 21 is moved and driven in the direction as shown by the arrow A of the Z-axis direction so as to machine the outside diameter 17 c of the rotating workpiece 17 a predetermined length L1 by the insert 25, as shown in FIG. 5(M3).

[0053] Subsequently, finishing machining is executed on an inside diameter 17 d of the workpiece 17 of FIG. 6(M4) with the complex tool 21. In this case, the virtual tool is designated by inputting “GNL IN” as tool name NA, “E” as suffix DC in the machining program PRO. Then, main control portion 2 searches the tool data DAT of the tool file 7, and selects the corresponding tool, that is, the virtual tool which tool name NA is “GNL IN” and the suffix DC is “E”, shown on the fifth from the upper of the figure which tool number TN is 1 as shown in {circle over (5)} of FIG. 3(b), and instructs the tool rest control portion 11 to index the tool to the machining position.

[0054] The tool rest control portion 11 refers to the detailed data DAT2 corresponding to {circle over (5)} inside diameter finishing machining from the tool name NA and the suffix DC designated in the machining program PRO, and reads out the indexing number KD “5” and the B-axis angle “0°” concerning {circle over (5)} inside diameter finishing machining of the complex tool 21 shown in the detailed data DAT2.

[0055] The tool rest control portion 11 drives and controls the tool driving motor (not shown) built in the tool rest on the basis of the read indexing number “4” and the B-axis angle “0°” concerning {circle over (5)} inside diameter finishing machining so as to rotate the complex tool 21 around its axial center CT3. And, the complex tool 21 is positioned in the state that the indexing number KD is 4, as shown in FIG. 3(a) Furthermore, the B-axis driving motor (not shown) is driven so as to move and drive the tool rest 20 in the direction as shown by the arrows G and H of the B-axis direction. Then, the complex tool 21 is positioned so that the B-axis angle position is 0° with respect to the Z-axis, that is, so as to be parallel, as shown in FIG. 6(M4). In this state, the complex tool 21 is moved and driven in the direction as shown by the arrow A of the Z-axis direction so as to machine the inside diameter 17 d of the rotating workpiece 17 a predetermined length by the insert 26, as shown in FIG. 6(M4).

[0056] As shown in FIG. 6(M5), (M6) and FIG. 7 (M7), (M8) the respective inserts 22, 23, 25, 26 of the same complex tool 21 are rotated around the tool axial center CT3 on the basis of the tool data DAT stored in the tool file 7 so as to selectively index and position the insert to be used for machining. And, the tool rest is properly rotated and positioned in the direction of the B-axis angle so as to execute various kinds of machining, such as the outside diameter finishing machining as shown in FIG. 6(M5) the outside diameter slot machining as shown in FIG. 6(M6), the inside diameter screw machining as shown in FIG. 7(M7) and the outside diameter screw machining as shown in FIG. 7(M8) on the workpiece 17 by the respective inserts 22, 23, 25, 26. On this occasion, the virtual tools {circle over (1)} through {circle over (7)} as shown in FIG. 3(c) are not used in a part of machining concerning FIG. 6 and FIG. 7. But, in this case also, machining is executed using the virtual tool concerning the complex tool 21 of FIG. 4 set and stored in the other part of the tool file 7. For instance, the virtual tool to be used for the outside diameter finishing machining of FIG. 6(M5) is one which tool number TN is 1 (showing the complex tool 21), tool name NA is “GNL OUT”, suffix DC is “K”, indexing number KD is “2”, B-axis angle is 5° in the tool file 7. Then, this is the machining with the insert 26.

[0057] After turning machining finished on the workpiece 17, milling machining as shown in FIG. 8 (M9), (M1) and (M11) is executed at this time. In this case also, (M9) face machining, (M10) drilling machining and (M11) spot facing machining are executed on the workpiece 17 with {circle over (6)} milling drill and {circle over (7)} end mill of the virtual tools concerning the complex tool 21 set in the tool file 7 of the complex tool 21. Both {circle over (6)} milling drill and {circle over (7)} end mill of the virtual tools are the machining with the insert 22 which indexing number is 1, as shown in FIG. 3(c). Then, milling machining is executed in such a manner that the workpiece 17 held by the spindle is fixedly held around the Z-axis or is rotated with C-axis control while the complex tool 21 being rotated at high speed with the axial center CT2 as its center, changing the B-axis angle.

[0058] By machining as mentioned before, the workpiece, for instance, as shown in FIG. 2 can be cut and machined from a round bar, with one complex tool 21.

[0059] There is such a case where the inserts 22, 23, 25, 26 of the respective virtual tools of the complex tool 21 and the workpiece 17 may interfere with each other due to the machining shape of the workpiece 17 on such a machining, as shown in FIGS. 11(a), (c) (d) Each virtual tool is generally positioned by the tool rest 20 on the basis of the B-axis angle ANG as shown in {circle over (4)} of FIG. 10, set in the detailed data DAT2 set in the tool file 7 concerning the virtual tool. But, in case where the angle of a taper TP portion of the workpiece 17 exceeds the clearance angle {circle over (3)} of the tool as shown in FIG. 11(a), or there is an arc CT portion of the workpiece 17 as shown in FIGS. 11(b) and (c), there is no clearance angle between the virtual tool and the workpiece as shown in {circle over (3)} of FIG. 10, the virtual tool and the workpiece 17 interfere with each other, and then a proper machining can not be executed. Furthermore, in case where as shown in FIG. 11(e), the main body 21 a of the complex tool 21 and the taper TP or the arc portion CT of the workpiece 17 interfere with each other also, a proper machining can not be executed.

[0060] Then, the main control portion 2 simulates machining program by the simulation control portion 8 prior to the machining on a workpiece 17 with the complex tool by the machining program, and gets the B-axis angle changing judging control portion 4 to judge whether there is an interference between the workpiece and the virtual tool when machining is executed, with each virtual tool which use is instructed in the machining program, keeping the B-axis angle ANG as a default value, in the detailed data DAT2 in the tool data TL set for the tool. Besides, the B-axis angle ANG set as the default value is changed in case where there is an interference.

[0061] That is, the B-axis angle changing judging control portion 4 executes the B-axis angle changing judging program BJP as shown in FIG. 9, and reads out the cutting angle in {circle over (1)} of FIG. 10 and the tool angle in {circle over (2)} of FIG. 10 concerning the virtual tool which use is instructed in the machining program simulated from the corresponding detailed data DAT2 in the tool file 7 as shown in FIG. 3(b) so as to obtain at step S1.

[0062] Subsequently, the program enters into step S2, and as to whether or not the machining of the machining program simulated is rough machining is judged. In case of rough machining, the finishing machining shape registered in the machining program is shifted at the quantity of its finishing stock in step S3, and the machining shape formed by the rough machining is set.

[0063] Next, the program enters into step S4, and correction of tool edge R as known art is executed. And, in step S5, the B-axis shift quantity is made 0, that is, the default value stored in the tool data DAT is adopted as the value of the B-axis angle. For instance, in case of FIG. 3(b), 112° is adopted as the B-axis angle ANG. Next, the clearance angle as shown in {circle over (3)} of FIG. 10 is calculated at step S6. This clearance angle {circle over (3)} is shown by the following expression.

clearance angle {circle over (3)}=180°−{circle over (1)} cutting angle−{circle over (2)} tool angle+B-axis shift quantity

[0064] After the clearance angle {circle over (3)} is thus obtained, as to whether or not there is an interference between the workpiece and the virtual tool to be used for machining is judged by simulating at step S8.

[0065] When the clearance angle {circle over (3)} is sufficient and the interference between the workpiece and the virtual tool to be used for machining (the complex tool 21) does not occur, the program enters into step S9. The default value is adopted as it is as the B-axis angle ANG, and actual machining is executed with the default value. But, in case where the clearance angle {circle over (3)} is short and the interference between the workpiece and the virtual tool to be used for machining (the complex tool 21) occurs as shown in FIGS. 11(a), (c), (d) and (e), the program enters into step S10, and as to whether or not the B-axis shift value reaches a predetermined clamp value (mentioned hereinafter) is judged. If not reach, the present B-axis angle ANG is shifted a predetermined quantity in the direction as shown by the arrows G and H of FIG. 1 which is the B-axis direction so as to get the insert away from the workpiece 17. The complex tool 21 is moved 5°, for instance, in the direction where the inserts 22, 23, 25, 26 get away from the workpiece 17, that is, in the arrow K direction of FIG. 11 for avoiding the interference between the workpiece and the insert.

[0066] In this state, the step 6 and the subsequent steps are repeated again. The complex tool 21 is rotated a predetermined quantity in the direction opposite to the workpiece 17, as already mentioned. Therefore, the possibility of occurring the interference between the workpiece and the virtual tool is lower in comparison with the last simulation. Then, as to whether or not there is interference between the workpiece and the virtual tool is judged again in step S8. In case where the judgement is no interference as shown in FIG. 11(b), the program enters into step S9 from step S8. And, the B-axis angle is changed into the value shifted a predetermined quantity as the B-axis angle ANG at the time of actual machining and its value is determined.

[0067] In case where the interference between the workpiece 17 and the virtual tool is judged after shifting of the B-axis angle ANG at step S8, the B-axis angle ANG is further shifted in the direction as shown by the arrows G and H of FIG. 1 which is the B-axis direction, in the direction where the inserts 22, 23, 25, 26 get away from the workpiece 17 via step 10 and step 11. And, this is repeated until no interference is judged at step S8.

[0068] By doing so, the B-axis angle ANG is gradually moved in the direction opposite to the workpiece 17. But, in case where the B-axis angle ANG is widely changed in comparison with the initial default value, there is a danger of occurring hindrance on the execution of the machining with the virtual tool. So, the maximum shift quantity of the B-axis angle shifted from the default value of the B-axis angle ANG at step S11 is limited to a constant value. In case where the interference between the workpiece and the virtual tool is judged at step S8 in such a state that the B-axis angle is changed into the B-axis angle ANG adding the maximum shift quantity to the B-axis angle ANG at step S11, the judgement that the shift quantity with respect to the B-axis angle ANG reaches the maximum value, that is, reaches the clamp value is done at step S10. Then, the program enters into step S9, and the B-axis angle ANG is determined with the clamp value. In this case, the interference between the workpiece and the virtual tool is not released. Then, the main control portion 2 outputs the alarm to the display 12 and notifies an operator of change of tool to be used.

[0069] The present invention is explained on the basis of the embodiment heretofore. The embodiments which are described in the present specification are illustrative and not limiting. The scope of the invention is designated by the accompanying claims and is not restricted by the descriptions of the specific embodiments. Accordingly, all the transformations and changes belonging to the claims are included in the scope of the present invention. 

1. Complex machining machine tool having a tool rest capable of attachably and detachably installing a complex tool having a plurality of inserts thereon, capable of a plurality of kinds of machining on a workpiece with said complex tool by selectively indexing and using said insert installed on said complex tool, said complex machining machine tool comprising: a spindle rotatably supported with Z-axis as its center; said tool rest being free to move and drive in X-axis direction perpendicular to said Z-axis, and being free to rotate, position and drive in B-axis direction with Y-axis perpendicular to said X-axis and Z-axis as its center; tool file storing tool data concerning a tool to be used in machining program; said complex tool registered in said tool file as a plurality of virtual tools for executing machining concerning a plurality of machining capable of executing with said complex tool; said virtual tools including a turning tool and a milling tool; said tool data stored for every said virtual tool; said tool data storing an angle of said B-axis direction concerning each virtual tool at which said tool is positioned when said virtual tool is used as B-axis angle; and machining executing means reading out tool data of corresponding virtual tool from said tool file on the basis of machining instruction by said virtual tool stored in said machining program and executing machining with said complex tool on the basis of said tool data.
 2. The complex machining machine tool as set forth in claim 1, wherein tool length concerning one complex tool is stored for each insert.
 3. The complex machining machine tool as set forth in claim 1, wherein interference occurrence judging means is provided for judging whether or not there is interference between a workpiece to be machined and said each virtual tool by simulating machining program to be executed from now on, and B-axis angle changing means is provided for changing and setting B-axis angle so as to shift B-axis angle concerning said virtual tool stored in said tool data a predetermined quantity in the direction which said complex tool gets away from said workpiece in case where the interference between said workpiece to be machined and said each virtual tool is judged by said interference occurrence judging means.
 4. The complex machining machine tool as set forth in claim 3, wherein maximum shifting quantity is set for the shifting quantity of B-axis angle by said B-axis angle changing means, and said B-axis angle is controlled so as not shift over said maximum shifting quantity. 